package com.yueyang.sojourn.server.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author yemingxing
 * @summary 七牛文件服务器配置
 * @Copyright (c) 2020, Yueyang Group All Rights Reserved.
 * @since 2020-02-27 12:41
 */
@Configuration
@ConfigurationProperties(prefix = "qiniu")
public class QiniuProperties {

    /**
     * bucket域名
     */
    @Getter
    @Setter
    private String domain;

    @Getter
    @Setter
    private Storage storage;

    @Getter
    @Setter
    public static class Storage {
        private String bucket;
        private String accessKey;
        private String secretKey;
    }
}
